/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.PostAd.Model;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author Yogesh
 */
public class PostAd_Model extends org.apache.struts.action.ActionForm {
    
    
        String idFromUserInformation;
        String activationCode;

    public String getActivationCode() {
        return activationCode;
    }

    public void setActivationCode(String activationCode) {
        this.activationCode = activationCode;
    }

    public String getIdFromUserInformation() {
        return idFromUserInformation;
    }

    public void setIdFromUserInformation(String idFromUserInformation) {
        this.idFromUserInformation = idFromUserInformation;
    }

    public String getPostAd_Ad_Apprval() {
        return postAd_Ad_Apprval;
    }

    public void setPostAd_Ad_Apprval(String postAd_Ad_Apprval) {
        this.postAd_Ad_Apprval = postAd_Ad_Apprval;
    }

    public String getPostAd_Ad_Id() {
        return postAd_Ad_Id;
    }

    public void setPostAd_Ad_Id(String postAd_Ad_Id) {
        this.postAd_Ad_Id = postAd_Ad_Id;
    }

    public String getPostAd_Address() {
        return postAd_Address;
    }

    public void setPostAd_Address(String postAd_Address) {
        this.postAd_Address = postAd_Address;
    }

    public String getPostAd_AmountToBePaid() {
        return postAd_AmountToBePaid;
    }

    public void setPostAd_AmountToBePaid(String postAd_AmountToBePaid) {
        this.postAd_AmountToBePaid = postAd_AmountToBePaid;
    }

    public String getPostAd_Company_Name() {
        return postAd_Company_Name;
    }

    public void setPostAd_Company_Name(String postAd_Company_Name) {
        this.postAd_Company_Name = postAd_Company_Name;
    }

    public String getPostAd_Image_Size() {
        return postAd_Image_Size;
    }

    public void setPostAd_Image_Size(String postAd_Image_Size) {
        this.postAd_Image_Size = postAd_Image_Size;
    }

    public String getPostAd_Landline_Number() {
        return postAd_Landline_Number;
    }

    public void setPostAd_Landline_Number(String postAd_Landline_Number) {
        this.postAd_Landline_Number = postAd_Landline_Number;
    }

    public String getPostAd_Location() {
        return postAd_Location;
    }

    public void setPostAd_Location(String postAd_Location) {
        this.postAd_Location = postAd_Location;
    }

    public String getPostAd_Mobile_Number() {
        return postAd_Mobile_Number;
    }

    public void setPostAd_Mobile_Number(String postAd_Mobile_Number) {
        this.postAd_Mobile_Number = postAd_Mobile_Number;
    }

    public String getPostAd_Templet_Image() {
        return postAd_Templet_Image;
    }

    public void setPostAd_Templet_Image(String postAd_Templet_Image) {
        this.postAd_Templet_Image = postAd_Templet_Image;
    }
String postAd_Company_Name;
String postAd_Address;
String postAd_Location;
String postAd_Mobile_Number;
String postAd_Landline_Number;
String postAd_Image_Size;
String postAd_Templet_Image;
String postAd_Ad_Id;
String postAd_AmountToBePaid;
String postAd_Ad_Apprval;
    /**
     *
     */
    public PostAd_Model() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
//        if (getName() == null || getName().length() < 1) {
//            errors.add("name", new ActionMessage("error.name.required"));
//            // TODO: add 'error.name.required' key to your resources
//        }
        return errors;
    }
}
